import { Injectable } from '@angular/core';

@Injectable({
  providedIn: 'root'
})
export class MessageService {

  constructor() { }

  public data:any;

  open(data:string){
    this.data={
      show:true
    };
    this.data.message=data;
    this.data.class="pf bg p10 white";
    setTimeout(() => {
      this.data=null;
    }, 3000);
  }

}
